package Hanoi2.disque;

public class MesEntiers2 implements Empilable {
	Integer val;

	public void init(int nb) {
		val = new Integer(nb);
	}

	public int compareTo(Object v) {
		MesEntiers2 m = (MesEntiers2) v;
		return val.compareTo(m.val);
	}

	public String toString() {
		return "MesEntiers[" + val.intValue() + "]";
	}
}
